<html>
<head><meta charset="utf-8"><title>async closures, and async blocks? · t-compiler/wg-rfc-2229 · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/189812-t-compiler/wg-rfc-2229/index.html">t-compiler/wg-rfc-2229</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/189812-t-compiler/wg-rfc-2229/topic/async.20closures.2C.20and.20async.20blocks.3F.html">async closures, and async blocks?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="223277270"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189812-t-compiler/wg-rfc-2229/topic/async%20closures%2C%20and%20async%20blocks%3F/near/223277270" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/189812-t-compiler/wg-rfc-2229/topic/async.20closures.2C.20and.20async.20blocks.3F.html#223277270">(Jan 19 2021 at 19:11)</a>:</h4>
<p>Does this work cover the captures of async closures as well? Or the captures of async blocks?</p>



<a name="223304032"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189812-t-compiler/wg-rfc-2229/topic/async%20closures%2C%20and%20async%20blocks%3F/near/223304032" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aman Arora <a href="https://rust-lang.github.io/zulip_archive/stream/189812-t-compiler/wg-rfc-2229/topic/async.20closures.2C.20and.20async.20blocks.3F.html#223304032">(Jan 19 2021 at 22:14)</a>:</h4>
<p><span class="user-mention" data-user-id="239881">@Josh Triplett</span>  Yes it does: <a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=11a567d3091c70dab92effac43a62819">https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=11a567d3091c70dab92effac43a62819</a></p>
<p>Though we should add tests for async and generators to the compiler test suite</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>